home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 26 / Cream of the Crop 26.iso / program / vol16n13.zip / OPENTR.ZIP / OT_SRC.ZIP / MAINFRM.H < prev    next >
C/C++ Source or Header  |  1997-05-26  |  2KB  |  79 lines

  1. // MainFrm.h : interface of the CMainFrame class
  2. //
  3. // OpenTrap Version 1.00 by Gregory A. Wolking
  4. // Copyright ⌐ 1997 Ziff-Davis Publishing
  5. // First published in PC Magazine, US Edition, July 1997.
  6. /////////////////////////////////////////////////////////////////////////////
  7. class CMainFrame : public CFrameWnd
  8. {
  9. protected: // create from serialization only
  10.     CMainFrame();
  11.     DECLARE_DYNCREATE(CMainFrame)
  12.  
  13. // Attributes
  14. public:
  15.  
  16. // Operations
  17. public:
  18.  
  19. // Overrides
  20.     // ClassWizard generated virtual function overrides
  21.     //{{AFX_VIRTUAL(CMainFrame)
  22.     virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
  23.     //}}AFX_VIRTUAL
  24.  
  25. // Implementation
  26. public:
  27.     virtual ~CMainFrame();
  28. #ifdef _DEBUG
  29.     virtual void AssertValid() const;
  30.     virtual void Dump(CDumpContext& dc) const;
  31. #endif
  32.  
  33. protected:  // control bar embedded members
  34.     CStatusBar  m_wndStatusBar;
  35.     CToolBar    m_wndToolBar;
  36.     CToolBar    m_wndViewToolBar;
  37.  
  38. // Generated message map functions
  39. protected:
  40.     //{{AFX_MSG(CMainFrame)
  41.     afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
  42.     afx_msg void OnDestroy();
  43.     afx_msg void OnLoggingStart();
  44.     afx_msg void OnLoggingStop();
  45.     afx_msg void OnLoggingOptions();
  46.     afx_msg void OnUpdateFileSave(CCmdUI* pCmdUI);
  47.     afx_msg void OnUpdateFileSaveAs(CCmdUI* pCmdUI);
  48.     afx_msg void OnFileExport();
  49.     afx_msg void OnViewFilter();
  50.     afx_msg void OnViewRecnum();
  51.     afx_msg void OnUpdateViewRecnum(CCmdUI* pCmdUI);
  52.     afx_msg void OnClose();
  53.     afx_msg void OnUpdateFilePrint(CCmdUI* pCmdUI);
  54.     afx_msg void OnViewFont();
  55.     afx_msg void OnViewFontDefault();
  56.     afx_msg void OnUpdateViewFontDefault(CCmdUI* pCmdUI);
  57.     afx_msg BOOL OnQueryEndSession();
  58.     //}}AFX_MSG
  59.     afx_msg void OnViewMove(UINT nID);
  60.     afx_msg void OnUpdateViewMove(CCmdUI* pCmdUI);
  61.     afx_msg void OnUpdateIndicators(CCmdUI* pCmdUI);
  62.     afx_msg void OnUpdateLogging(CCmdUI* pCmdUI);
  63.     afx_msg LONG On_VXD_Stop_Request(WPARAM wParam, LPARAM lParam);
  64.     afx_msg LONG On_Taskbar_Notify(WPARAM wParam, LPARAM lParam);
  65.     DECLARE_MESSAGE_MAP()
  66. private:
  67.     BOOL m_bVisible;
  68.     BOOL m_bInTaskBar;
  69.     DWORD m_intStartRecCount;
  70.     void Stop_Logging(void);
  71.     BOOL Start_Logging(void);
  72.     void DockControlBarLeftOf(CToolBar* Bar,CToolBar* LeftOf);
  73.     void WriteWindowPlacement(LPWINDOWPLACEMENT pwp);
  74.     BOOL ReadWindowPlacement(LPWINDOWPLACEMENT pwp);
  75.     BOOL Do_Taskbar_Icon(UINT func);
  76. };
  77.  
  78. /////////////////////////////////////////////////////////////////////////////
  79.